#!/bin/bash

echo "解决笔记本电脑的续航过短问题"
echo "安装tlp，降低功耗，同时安装preload优化速度"
echo 
read -p "回车继续"

add-apt-repository ppa:linuxuprising/apps
apt install tlp tlpui tlp-rdw acpi-call-dkms tp-smapi-dkms preload
cp data/tlp.conf /etc/tmp.conf

echo "注意tlp.conf可能不适合所有电脑"
echo "请用sudo tlpui自行设置"